import express from 'express'
import colors from 'colors'

const http = express()

colors.enable()


http.get('/status', (req, res) => {
    res.status(200).json({ status: 'OK', time: new Date() });
})

http.post('execute', (req, res) => {
    console.info(req)

})

//监听9999端口
http.listen(9999)


console.log(colors.green('[executor] 测试执行器已启动，监听端口：9999'))